import React from 'react';
import {
    BrowserRouter as Router,
    Route,
    Switch
} from "react-router-dom";
import Home from './pages/Home';
import Xiai from './pages/Xiai';
import Login from './pages/Login';
import AuthRoute from './components/AuthRoute';
import LgProvider from './components/userContext';
// import ColProvider from './components/colContext';

const App = ()=>{
    return (
        <LgProvider>
            {/* <ColProvider> */}
                <Router>
                    <Switch>
                        {/* <Route path='/login' component={Login}/>
                        <AuthRoute exact path='/' component={Home}/> */}
                        <Route path='/' component={Home}/>
                        <Route path='/xiai' component={Xiai}/>
                    </Switch>
                </Router>
            {/* </ColProvider> */}
        </LgProvider>
    )
}

export default App;
